@import './base.css';

#app {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  font-weight: normal;
  min-height: 100vh;
  overflow-x: hidden;
}

a,
.green {
  text-decoration: none;
  color: hsla(160, 100%, 37%, 1);
  transition: 0.4s;
  padding: 3px;
}

@media (hover: hover) {
  a:hover {
    background-color: hsla(160, 100%, 37%, 0.2);
  }
}

/* 优化全局字体和基础样式 */
body {
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 大屏幕优化 */
@media (min-width: 1440px) {
  body {
    font-size: 17px;
  }
}

@media (min-width: 1024px) {
  body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  #app {
    display: block;
    padding: 0;
    width: 100%;
  }
}

/* 移动端优化 */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
}
